package com.gxy.learn.design.model.construction.decorator;

/**
 * @description: 快餐类 （抽象构建角色）
 * @author: gaoxueyong
 * @Date: 2022/11/7 19:19
 */
public abstract class FastFood {
//    价格
    private double price;
//    描述
    private String desc;

    public FastFood(double price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    /**
     * 计算价格
     * @Author gaoxueyong
     * @Date 7:21 下午 2022/11/7
     * @Param []
     * @return double
     **/
    public abstract double cost();

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
